projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2599c5a
)
ngl: Improve packing
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 28 Mar 2021 20:41:25 +0000
(16:41 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 29 Mar 2021 19:17:10 +0000
(15:17 -0400)
Pack texture cache entries slightly better.
There was a 4 byte hole here.
gsk/ngl/gskngltexturepoolprivate.h
patch
|
blob
|
history
diff --git
a/gsk/ngl/gskngltexturepoolprivate.h
b/gsk/ngl/gskngltexturepoolprivate.h
index 8b39ec5440915cc7b4fa5c7b479691829ea7f696..ac8e326eb5faa6df7ad0c689cdfe739ffc1fa1c5 100644
(file)
--- a/
gsk/ngl/gskngltexturepoolprivate.h
+++ b/
gsk/ngl/gskngltexturepoolprivate.h
@@
-58,13
+58,13
@@
struct _GskNglTexture
/* Backpointer to texture (can be cleared asynchronously) */
GdkTexture *user;
+ /* Only used by nine-slice textures */
+ GskNglTextureNineSlice *nine_slice;
+
/* Only used by sliced textures */
GskNglTextureSlice *slices;
guint n_slices;
- /* Only used by nine-slice textures */
- GskNglTextureNineSlice *nine_slice;
-
/* The actual GL texture identifier in some shared context */
guint texture_id;